package com.heima.admin.controller.v1;

import com.heima.apis.admin.IAdminClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HYK
 * @date 2022/10/25
 */
@Slf4j
@RestController
@RequestMapping("/api/v1/news")
public class AdNewsController {

    @Autowired
    private IAdminClient iAdminClient;

    @PostMapping("/list_vo")
    public ResponseResult list(@RequestBody NewsAuthDto dto) {
        return iAdminClient.listVo(dto);
    }
}
